
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
				{{#bs-form formLayout=formLayout model=customerbusinessflowModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
							{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickAction="detailSaveClick" detailSaveClick="detailSaveClick" clickActParams=customerbusinessflowInfo}}
							{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
			        {{/ui/mix-button}}
              {{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='暂存'  clickAction="stagingAction" stagingAction="stagingAction" }}
			        {{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='返回'  clickAction="detailCancel" detailCancel="detailCancel"}}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住开始日期：</span>
                {{#if detailEdit}}
								  {{ui/addon/bs-datetimepicker date=customerbusinessflowInfo.experienceStartTimeDate placeholder="试住开始日期(必填)" locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerbusinessflowInfo.experienceStartTimeDate show="dpShowAction" change="changeTryStartAction" }}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experienceStartTimeDate}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住结束日期：</span>
                {{#if detailEdit}}
								  {{ui/addon/bs-datetimepicker date=customerbusinessflowInfo.experienceEndTimeDate placeholder="试住结束日期(必填)" locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerbusinessflowInfo.experienceEndTimeDate show="dpShowAction" change="changeTryEndAction" }}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experienceEndTimeDate}}</div>
                {{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">经办人：</span>
                {{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="experienceStaff"  property="experienceStaff" }}
										{{#power-select class="input-group-content" placeholder='经办人姓名(必填)' options=staffList  selected=defaultStaff searchField="namePinyin"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectStaff" ) as |staff|}}
											{{staff.name}}
										{{/power-select}}
									{{/bs-form-element}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experienceStaff.name}}</div>
                {{/if}}
							</div>
						</div>



            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住办理日期：</span>
                {{#if detailEdit}}
									{{ui/addon/bs-datetimepicker date=customerbusinessflowInfo.experienceDateTime placeholder="试住办理日期(必填)" locale="zh-CN" iconClasses="fa fa-calendar" format='YYYY-MM-DD' value=customerbusinessflowInfo.experienceDateTime show="dpShowAction" change="changeTryAction" }}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experienceDateTime}}</div>
                {{/if}}
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住床位：</span>
                {{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="experienceBed"  property="experienceBed" }}
										{{#power-select class="input-group-content" placeholder='床位名称(必填)' options=bedList  selected=defaultBed searchField="namePinyin"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectBed" ) as |bed| }}
											{{bed.name}}
										{{/power-select}}
									{{/bs-form-element}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.orderBed.name}}</div>
                {{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">床位价格：</span>
								{{#if customerbusinessflowInfo.experienceBed}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experienceBed.price}}</div>
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.orderBed.price}}</div>
								{{/if}}
							</div>
						</div>





						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">餐饮等级：</span>
                {{#if detailEdit}}
									{{callbusi/dict-selector class="inline-block" curDict=customerbusinessflowModel.diningStandard groupCode=constants.diningStandard isTenant=true
										showName=customerbusinessflowModel.diningStandard.typename value=customerbusinessflowModel.diningStandard}}

                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.diningStandard.typename}}</div>
                {{/if}}
							</div>
						</div>



						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">餐饮价格：</span>
                  <div class="input-group-content">{{customerbusinessflowModel.diningStandard.remark}}</div>
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">护理方案：</span>
								{{#if project}}
                  <div class="input-group-content"><a class="pointer" {{action "toProject" project on="click"}}>{{customerbusinessflowInfo.customer.name}}的护理方案</a></div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">护理方案价格：</span>
                  <div class="input-group-content">{{project.price}}</div>
							</div>
						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住参考价格：</span>
                  <div class="input-group-content">{{referencePrice}}</div>
							</div>
						</div>

            <div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
								<span class="input-group-addon">试住实际价格：</span>
                {{#if detailEdit}}
                    {{bs-form-element property="experiencePrice" class="inline-block form-input-group label-normal" controlType="experiencePrice" placeholder='试住实际价格(必填)'}}
                {{else}}
                  <div class="input-group-content">{{customerbusinessflowInfo.experiencePrice}}</div>
                {{/if}}
							</div>
						</div>



						<div class="col-xs-12 col-sm-12">
							<div class="form-input-group">
								<span class="input-group-addon">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
								{{#if detailEdit}}
									{{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=customerbusinessflowInfo.experienceRemark placeholder='备注'}}
								{{else}}
									<div class="input-group-content">{{customerbusinessflowInfo.experienceRemark}}</div>
								{{/if}}
							</div>
						</div>

					</div>
				</div>
				<!-- 列表详细介绍 -->
			</div>
			{{/bs-form}}

		</div>
		<!-- /BOX-BODY -->
	</div>
	{{#unless add}}
	<div class=" col-sm-12 nopadding-left nopadding-right question-box">
		<div class="box nopadding-left nopadding-right nopadding-vertical border blue shadow">
			<div class="box-title">
				<div class="title">客户信息</div>
			</div>
			<div class="box-body overflow-hidden fullWidth">
				{{#callbusi/customer-info customerInfo=customer detailModify=false showCustomer=true}}
				{{/callbusi/customer-info}}
			</div>
	</div>
</div>
	{{/unless}}
</div>
